package com.sw.model;

import java.io.Serializable;

public class User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9031942706939204615L;
	
	private Integer id;
	private String phone;
	private String password;
	private UserInfo userinfo;
	private Role role;
	
	
	public User() {
		super();
		
	}
	public User(Integer id, String phone, String password) {
		super();
		this.id = id;
		this.phone = phone;
		this.password = password;
	}
	public User(String phone, String password) {
		super();
		this.phone = phone;
		this.password = password;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public UserInfo getUserinfo() {
		return userinfo;
	}
	public void setUserinfo(UserInfo userinfo) {
		this.userinfo = userinfo;
	}
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	
	
	

}
